<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*水平对齐~参照物 a,b*/
     img,span{
         vertical-align: middle;
     }
    </style>
</head>
<body>
   <p>
       <img src="images/2.JPG" alt="">
       <span>123</span>

   </p>

</body>
</html>